import request from '@/utils/request'

// 查询工程师服务服务区域列表
export function listEngineerServerZone(query) {
  return request({
    url: '/vanger/engineerServerZone/list',
    method: 'get',
    params: query
  })
}

// 查询工程师服务服务区域列表（联合）
export function listUnion(query) {
  return request({
    url: '/vanger/engineerServerZone/listUnion',
    method: 'get',
    params: query
  })
}


// 查询工程师服务服务区域详细（联合）
export function getInfoUnion(id) {
  return request({
    url: '/vanger/engineerServerZone/getInfoUnion/' + id,
    method: 'get'
  })
}

// 查询工程师服务服务区域详细
export function getEngineerServerZone(id) {
  return request({
    url: '/vanger/engineerServerZone/' + id,
    method: 'get'
  })
}

// 新增工程师服务服务区域
export function addEngineerServerZone(data) {
  return request({
    url: '/vanger/engineerServerZone',
    method: 'post',
    data: data
  })
}

// 修改工程师服务服务区域
export function updateEngineerServerZone(data) {
  return request({
    url: '/vanger/engineerServerZone',
    method: 'put',
    data: data
  })
}

// 删除工程师服务服务区域
export function delEngineerServerZone(id) {
  return request({
    url: '/vanger/engineerServerZone/' + id,
    method: 'delete'
  })
}
